package cn.fintecher.pangolin.entity.elastic;

import cn.fintecher.pangolin.common.utils.Constants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

/**
 * 公告备忘录, 催收员记录各自事件
 * Created by huyanmin 2018/10/23
 */

@Data
@Document(indexName = Constants.REMARK, type = Constants.REMARK, shards = 1, replicas = 0)
@ApiModel(value = "remark", description = "备忘录")
public class Remark {
    @Id
    private String id;

    @ApiModelProperty(notes = "内容")
    private String commentContent;

    @ApiModelProperty(notes = "操作人名称")
    private String operatorName;

    @ApiModelProperty(notes = "操作人用户名")
    private String operatorUserName;

    @ApiModelProperty(notes = "提醒时间")
    @Field(type = FieldType.Date)
    private Date reminderTime;
}
